<?php
/**
 * ProjektMan
 *
 * LICENSE
 *
 * This source file is subject to the new BSD license that is bundled
 * with this package in the file LICENSE.txt.
 *
 * @category   ProjektMan
 * @name       Task.php
 * @license    LICENSE.txt     New BSD License
 */

/**
 * Table model for task
 *
 * @category   ProjektMan
 * @name       Task
 * @license    LICENSE.txt     New BSD License
 */
class Task extends Projekt_Model
{
    /**
     * get the status for a task
     *
     * @return unknown
     */
    public function getStatus()
    {
        $query = "SELECT status_name FROM status WHERE status_id = ? and status_type = 'task'";
        return $this->_db->fetchOne($query, $this->_data['status_id']);
    }
}

